#include "studentservice.h"

QList<Student> StudentService::getStudents() const
{
    return students;
}

void StudentService::setStudents(const QList<Student> &value)
{
    students = value;
}

StudentService::StudentService()
{    
    for (int i=0;i<10;i++) {
        Student stu(QString().setNum(1000+i),QString("yejing"),32+i,QString("广州"));
        students.append(stu);
    }
}
